package com.bwie.product.controller;

import com.bwie.common.core.domain.Result;
import com.bwie.product.domain.SkuInfo;
import com.bwie.product.service.SkuInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RequestMapping("/skuInfo")
@RestController
public class SkuInfoController {
    @Autowired
    private SkuInfoService skuInfoService;


    /**
     * 获取sku信息详细信息
     */
    @GetMapping(value = "/{skuId}")
    public Result getInfo(@PathVariable("skuId") Long skuId)
    {
        SkuInfo skuInfo = skuInfoService.selectPmsSkuInfoBySkuId(skuId);
        return Result.success(skuInfo);
    }

}
